package com.atbun.orderservice.client;

import com.atbun.commonutils.vo.EduCourseOrderVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@Component
@FeignClient(name = "service-edu",fallback = EduClientImpl.class)
public interface EduClient {
//    根据课程id查询课程信息
    @GetMapping("/eduservice/coursefront/getCourseOrderById/{courseId}")
    public EduCourseOrderVo getCourseOrderById(@PathVariable String courseId);
}
